<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js src(图片)</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case6-demo3">
    <div><input type="text" placeholder="高" v-model="srcHeight"></div>
    <div><input type="text" placeholder="宽" v-model="srcWidth"></div>
    <img v-bind:src="srcCss" v-bind:width="srcWidth" v-bind:height="srcHeight">
</div>
<script type="text/javascript">
    var case6Demo=new Vue({
        el:"#case6-demo3",
        data:{
            srcCss:"../images/timg.jpg",
            srcHeight:"",
            srcWidth:""
        }
    })
</script>
</body>
</html>